﻿using Fuse8.ContentManagementFramework.SystemFacade.Globalization.NGetText;
using Fuse8.DomainFramework.Common.Locator;

namespace Fuse8.ContentManagementFramework.SystemFacade.Globalization
{
    public class CmsAdminMoFilesFinder : MoFileFinderWithSuccessor
    {
        protected override string GetConcrete(string name)
        {
            if (name.StartsWith("cms_"))
            {
                return DependencyServiceLocator.Current.GetInstance<IMapPath>().MapPath("/admin/locale/");
            }

            return null;
        }
    }
}